package org.springblade.modules.job;

import com.aizuda.snailjob.client.job.core.annotation.JobExecutor;
import com.aizuda.snailjob.client.job.core.dto.JobArgs;
import com.aizuda.snailjob.client.model.ExecuteResult;
import com.aizuda.snailjob.common.log.SnailJobLog;
import org.springframework.stereotype.Component;

/**
 * @author harry
 * @公众号 Harry技术
 */
@Component
@JobExecutor(name = "testJob")
public class TestJob {
	public ExecuteResult jobExecute(JobArgs jobArgs) {
		SnailJobLog.REMOTE.info("哈哈，测试成功了");

		// 调用新增接口

		return ExecuteResult.success();
	}
}
